<?php
$config = array(
    'login' => array(
        array(
            'field' => 'username',
            'label' => '管理员账号',
            'rules' => 'required'
        ),
        array(
            'field' => 'password',
            'label' => '管理员密码',
            'rules' => 'required|min_length[6]|max_length[20]'
        ),
        array(
            'field' => 'code',
            'label' => '验证码',
            'rules' => 'required'
        )
    ),
    'admin_set'=>array(
        array(
            'field' => 'oldpass',
            'label' => '当前密码',
            'rules' => 'required|min_length[6]|max_length[20]'
        ),
        array(
            'field' => 'newpass',
            'label' => '新密码',
            'rules' => 'required|min_length[6]|max_length[20]'
        ),
        array(
            'field' => 'newpass2',
            'label' => '确认密码',
            'rules' => 'required|matches[newpass]'
        )
    ),
    
    
);